package com.yj.config.mybatis.pagination;

/**
 * Copyright 2017 (C) Yunjian-VC
 * Created on : 2017/12/8
 * Author     : Unbelievable9
 **/
public class PageThread {

    private static final ThreadLocal<PageDto> pageThreadLocal = new ThreadLocal<>();

    public static void setPageDto(PageDto pageDto) {
        pageThreadLocal.set(pageDto);
    }

    public static PageDto getPageDto() {
        return pageThreadLocal.get();
    }

    public static void cleanPageDto() {
        pageThreadLocal.remove();
    }
}
